const mysql = require("mysql2");

const Localdb = mysql.createPool({
    host: "127.0.0.1",
    port: "3306",
    user: "root",
    password: "admin123",
    database: "blogspot"
})

const cloud = mysql.createPool({
    host: "43.138.188.204",
    port: "3306",
    user: "resume",
    password: "admin123",
    database: "blogspot"
})
// 配置七牛云参数
const accessKey = 'Wu3xodO2EVuFk7ooGewuxaSMSam4cGhnz2fBGFMH';
const secretKey = 'jyuW64nN_18MnrbylRFuuYVgmmB9aunUi7-JDQgG';
const bucket = 'xuxiao-resume';
const Kodo = {
    accessKey,
    secretKey,
    bucket
}


module.exports = {
    db: cloud,
    Kodo
}